<?php

/*---------------------------------------------------------------------------*
 * Creatic : Taxonomy Configuration
 *---------------------------------------------------------------------------*/


/* Portfolio Category Taxonomy
/*-------------------------------------------------------------------------- */

if(FeatherTheme::get_option('theme_portfolio')) {

	// Slugs
	$type_slug = FeatherTheme::get_option('theme_portfolio_rewrite_type');
	$cat_slug = FeatherTheme::get_option('theme_portfolio_rewrite_category');

	// Rewrite
	if($type_slug && $cat_slug) {
		$rewrite = array(
			'slug'		 => $type_slug.'/'.$cat_slug,
			'with_front' => FALSE
		);
	}

	//! Taxonomy
	$tax['portfolio_category']=array(
		'type'	=> 'portfolio',
		'args'	=> array(
			'hierarchical'	=> TRUE,
			'rewrite'		=> isset($rewrite)?$rewrite:FALSE
		)
	);

}
